﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository
{
   public class InvolvedPartyTypeRepo : BaseRepository <InvolvedPartyType, int>
    {
       public InvolvedPartyTypeRepo(ISession session)
            : base(session)
        {
        }

       public InvolvedPartyType GetByName(string name)
       {
           return _session.QueryOver<InvolvedPartyType>()
                  .Where(x => x.InvolvedPartyTypeName == name).SingleOrDefault();
       }
    
    }
  
}
